#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H

#include <QThread>
#include <QPushButton>

class WorkerThread : public QThread
{
    Q_OBJECT
public:
    WorkerThread();

    void setButton( QPushButton *   button)
    {
        this->button = button;
    }
private:
    QPushButton *   button = nullptr;

protected:
    virtual void run() override;

};

#endif // WORKERTHREAD_H
